home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / ka9q / expiry / sleep.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-10  |  264 b   |  16 lines

  1. /* Sleep for some number of seconds (default 10) */
  2.  
  3. /* Written by Bernie Roehl, May 1990 */
  4.  
  5. #include <stdio.h>
  6. #include <dos.h>
  7. #include <stdlib.h>
  8.  
  9. void main(int argc, char *argv[])
  10.     {
  11.     if (argc > 1)
  12.         sleep(atoi(argv[1]));
  13.     else
  14.         sleep(10);
  15.     }
  16.